package com.hbnu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbnu.system.model.entity.TPlatform;
import com.hbnu.system.model.entity.User;
import com.hbnu.system.model.query.TPlatformPageQuery;
import org.apache.ibatis.annotations.Param;

public interface TPlatformMapper extends BaseMapper<TPlatform> {
    IPage<TPlatform> schoolGetRelateTPlatformQuery(
            @Param("page") Page<TPlatform> page,
            @Param("tPlatformPageQuery") TPlatformPageQuery query,
            @Param("user") User user
    );

    // 院级审核员查询：指定参数名为page、tPlatformPageQuery、dept
    IPage<TPlatform> collegeGetRelateTPlatformQuery(
            @Param("page") Page<TPlatform> page,
            @Param("tPlatformPageQuery") TPlatformPageQuery query,
            @Param("user") User user
    );

    // 用户查询：指定参数名为page、tPlatformPageQuery、user
    IPage<TPlatform> userGetRelateTPlatformQuery(
            @Param("page") Page<TPlatform> page,
            @Param("tPlatformPageQuery") TPlatformPageQuery query,
            @Param("user") User user
    );

    IPage<TPlatform> schoolExportRelateTPlatformQuery(
            @Param("page") Page<TPlatform> page,
            @Param("tPlatformPageQuery") TPlatformPageQuery tPlatformPageQuery,
            @Param("user") User user
    );

    IPage<TPlatform> collegeExportRelateTPlatformQuery(
            @Param("page") Page<TPlatform> page,
            @Param("tPlatformPageQuery") TPlatformPageQuery tPlatformPageQuery,
            @Param("user")  User user
    );

    IPage<TPlatform> userExportRelateTPlatformQuery(
            @Param("page") Page<TPlatform> page,
            @Param("tPlatformPageQuery") TPlatformPageQuery tPlatformPageQuery,
            @Param("user") User user
    );
}
